package com.kb.order.service;

import com.kb.order.pojo.Order;
import com.kb.order.pojo.ShopInfo;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

public interface IShopInfoService{
    int insert(@Param("pojo") ShopInfo pojo);

    int insertList(@Param("pojos") List< ShopInfo> pojo);

    List<ShopInfo> select(@Param("pojo") ShopInfo pojo);

    int update(@Param("pojo") ShopInfo pojo);

    public Map<Integer,ShopInfo> lookCar();

    void joinCar(Integer id);

    void delCarFood(Integer id);

    void plusFoodNum(Integer id);

    void loseFoodNum(Integer id);

    void addOrder(Order order,Object[] foodId,Integer addressId);

    List<ShopInfo> selectshop(ShopInfo shop);
}
